<template>
  <div>
    <a-drawer
      :open="open"
      :title="editType === 'add' ? '新增项' : '编辑项' "
      placement="right"
      @close="close"
      width="500"
    >
      <slot name="bodycontent"></slot>
    </a-drawer>
  </div>
</template>
<script setup>
defineProps(['open', 'editType'])
const emit = defineEmits(['update:open', 'close'])
const close = () => {
  emit('close')
}
</script>